package com.my.bigsite.common.activiti;

import org.activiti.engine.identity.User;
import org.activiti.engine.impl.persistence.entity.UserEntity;
import org.activiti.engine.impl.persistence.entity.UserEntityManager;
import org.springframework.beans.factory.annotation.Autowired;

import com.my.bigsite.common.mybatis.MybatisDao;
import com.my.bigsite.modules.sys.dao.IUserDao;
import com.my.bigsite.modules.sys.service.UserService;

public class CustomUserEntityManager extends UserEntityManager {
    
	@Autowired 
	UserService userService;
	
	@Autowired 
	MybatisDao mybatisDao;
	@Override
	public Boolean checkPassword(String userId, String password) {
		Boolean flag= userService.checkPassword(userId, password);
		System.out.println("当前登陆用户结果:"+flag);
		return flag;
	}
}
